<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2017/12/1
 * Time: 11:37
 */

namespace App\Http\Controllers\VipChannel\Web;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class WelcomeController extends Controller
{
    public function index(Request $request)
    {
        $options = [];
        //var_dump($request->session()->get('uid'));
        return view('vipchannel.index', compact('options'));
    }

    public function logout(Request $request)
    {
        $request->session()->forget('uid');
        $request->session()->forget('user_type');
        return redirect()->secure('/passport/login');
    }
}